package sk.atletis.atletika;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class DateHelper 
{
	public static String DbString2String(String DbString)
	{
		Locale l = Locale.getDefault();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", l);
		Date date = null;
		try 
		{
            date = sdf.parse(DbString);
            SimpleDateFormat sdf2 = new SimpleDateFormat("dd.MM.yyyy", l);
			return sdf2.format(date);
        } 
		catch (Exception e) {}
		
		return "";
	}
	
	
	
	
	
}
